package com.sectop.bank;

public class SavingAccount extends Account{
//    private  double overdraftProtection;
//
//    public SavingAccount(double balance,double protect) {
//        super(balance);
//        this.overdraftProtection = protect;
//    }
//
//    @Override
//    public boolean withDraw(double atm) {
//         if((balance + overdraftProtection) - atm < 0){
//             return false;
//         }else if(balance - atm > 0){
//             this.balance -= atm;
//         } else if (balance - atm < 0) {
//             double down = this.balance - atm;
//             this.overdraftProtection += down;
//         }
//    }
    private double interestRate;
    public SavingAccount(double balance,double interestRate) {
        super(balance);
        this.interestRate = interestRate;
    }


}
